package 补充.输入输出操作.字符流;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class 字符流操作写入文件 {
    public static void main(String[] args) throws IOException {
        File file =new File("D:\\Learn\\javademo\\untitled\\src\\补充_偏\\输入输出操作\\read.txt");
        FileWriter fw = new FileWriter(file);
        fw.write("我爱java");
        System.out.println("已保存到read.txt");
        fw.close();
    }
}
